import Vue from 'vue'
import VueRouter from 'vue-router'
import axios from 'axios'
import chinaMap from '../components/China_Map.vue'
import worldMap from '../components/World_Map.vue'

Vue.prototype.$http = axios
Vue.use(VueRouter)

const routes = [
    { path: '/', redirect: '/China_Map' },
    { path: '/China_Map', component: chinaMap},
    { path: '/World_Map', component: worldMap}
]

const router = new VueRouter({
    routes
})

export default router